﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OverLoadDemo
{
    class Staff
    {
       public string User { get; set; }
       public int Number { get; set; }
        public string Name { get; set; }
        public string DepartInfo{ get; set; }
    public Staff() 
        { 
        
        }
        public Staff(string User, int Number, string Name, string DepartInfo)
        {
            this.User = User;
            this.Number = Number;
            this.Name = Name;
            this.DepartInfo = DepartInfo;
        }
        public void userInfo()
        {
            Console.WriteLine("{0}用户的工号为：{1}，姓名叫{2}，部门是{3}",User,Number, Name,DepartInfo);
            Console.ReadKey();
        }
    }
}
